up: programming - C - File I/O  
programming - C - function rewindWhat links here?

prototype

void rewind(FILE* stream)


description

Repositions the file pointer to the beginning of a stream. Sets the file pointer associated with the stream to the beginning of the file.

A call to rewind is equivalent to:
fseek ( stream , 0L , SEEK_SET );
except that unlike fseek, using rewind the error indicator is cleared.

The next operation with the stream after a call to fseek can be either for input or output.

This function is also useful for clearing the keyboard buffer (normally associated with stdin).

parameters

programming - C - function rewind
filename:programming - C - function rewind
filename:programming%20%2D%20C%20%2D%20function%20rewind
last edit:December 18 2012 19:08:32 (4156 days ago)
ct = 1714968151.000000 = May 06 2024 00:02:31
ft = 1355875712.000000 = December 18 2012 19:08:32
dt = 359092439.000000